// 滚动条记录， 适用于 keep-alive 组件
export default {
	data(){
		return {
			scrollTop: 0
		}
	},
	
	mounted(){
		const vm = this;
		vm.$refs.scrollFixed.addEventListener('scroll', vm.$debounce(function() {
			vm.scrollTop = vm.$refs.scrollFixed.scrollTop;
		}, 50))
	},
	
	activated(){
		this.$refs.scrollFixed.scrollTop = this.scrollTop;
	},
}